Repository navigation
fix(teamfolder): Check teamfolder versions against the original file - #1287
Merged
Merged
Conversation
hweihwang
requested changes
Nov 30, 2026
hweihwang
left a comment
Contributor
There was a problem hiding this comment.
Thanks @benjaminfrueh! I could reproduce the lost version on main, and with the mimetype rule it's kept now. A rule on tags still drops it in team folders though, see inline.
benjaminfrueh
force-pushed
the
fix/teamfolder-versions
branch
from
December 2, 2026 11:55
80a4f7f to
680bc4a
Compare
hweihwang
approved these changes
Dec 3, 2026
hweihwang
left a comment
Contributor
There was a problem hiding this comment.
Thank you @benjaminfrueh! Tested again and the old version is kept with the tag rule now, restoring it works fine too. Also good catch on moving a file out of the team folder, that was lost on main for me and it's kept now. Old style team folders, shares and S3 look good as well 👍
Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Benjamin Frueh <benjamin.frueh@gmail.com>
benjaminfrueh
force-pushed
the
fix/teamfolder-versions
branch
from
December 3, 2026 09:09
680bc4a to
4095dc0
Compare
Contributor
|
/backport to stable35 |
Contributor
|
/backport to stable34 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Team folder versions are stored as
<fileId>/<timestamp>, without the file name.Operation::translatePath()did not map this path to the original file, so the version was denied. The old version is lost without any message. This also happens for shared team folder files.Reproduction
text/plain.txtfile to the team folder and overwrite itAccess denied by access controlfromVersionsBackend::createVersionFix
Map a new version to the original file by its file ID in the same storage.
Added an integration test to cover it.
🤖 AI (if applicable)